package com.woate.wingframework.persistent.api.transaction;

import com.woate.wingframework.persistent.api.exceptions.PersistentException;

import java.sql.Connection;


public interface Transaction {

  Connection getConnection() throws PersistentException;

  void commit() throws PersistentException;

  void rollback() throws PersistentException;

  void close() throws PersistentException;

}
